var niceScrobj = null, dealflag = "home";
var winWidth = 0, winHeight = 0, minwidth = 640;

//获取页面宽高
function init() {
	winWidth = $(window).width();
	winHeight = $(window).height();
	if (winWidth <= minwidth) {
		winWidth = minwidth;
	}
}
//重设页面宽度，菜单与消息，以页面宽度的90%显示，展示时将有10%页面显示主页内容
function resize() {
	init();
	var titleheight=$(".header").css("height").replace("px","");

	
	$("#home1").getNiceScroll().resize();
}
//页面加载完成执行
$(window).bind('DOMContentLoaded', function () { setTimeout(docLoaded, 100); }, false);
function docLoaded(){
	window.scrollTo(0, 1);
	window.setTimeout("resize()", 100);
	niceScrobj = $("#home1").niceScroll();
	$("html").niceScroll().hide();
}
$(document).ready(function(e) {
    var headerTds=$(".header td");
	$.each(headerTds,function(i,items){
		if(i%2!=0){
			$(items).attr("width","19%");
		}
	});
});

